<?php namespace App\Exceptions;

use Exception;

class HomeException extends Exception
{
    const NoData = 0x01;

    public function __construct($code,array $data = [], Exception $previous = null)
    {
        switch($code){
            case self::NoData:
                $message = trans('exception.home.no-team-data');
                break;
            default:
                $message = trans('general.unknow_exception');
        }

        parent::__construct($message,$code,$previous);
    }
}